import Vue from 'vue'
import Router from 'vue-router'

import routes from './routes'

Vue.use(Router)

let _router = new Router({
    // mode: 'history',
    routes
})

// _router.afterEach((to, from) => {
//     setTimeout(()=>{
//         document.querySelector("html").scrollTop = 0
//     },1)
// })


export default _router